﻿<%@ Page Title="Log In" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="TU_Org.List.aspx.cs" Inherits="JOIN.Rights.Apps.TU_OrgList" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <!-- List.aspx -->
    <ajaxToolkit:ToolkitScriptManager ID="scriptmanager1" runat="server" />
    <table cellspacing="0" cellpadding="0" width="95%" border="0">
        <tr>
            <td>
                <table width="100%" class="InputTable">
                    <tr>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            组织结构编号：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtOrgID" runat="server" Width="200px"></asp:TextBox>
                        </td>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            组织机构名称：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtOrgFullName" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            OrgShortName：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtOrgShortName" runat="server" Width="200px"></asp:TextBox>
                        </td>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            描述：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtOrgDesc" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            父机构编号：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtOrgParent" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center">
                <input type="button" id="btnQuery" value="查询" class="btn" />
                &nbsp;&nbsp;
                <input type="button" id="btnAdd" value="新增" class="btn" />
                <Kevin:DialogWindow ID="window1" runat="server" ControlID="btnAdd" URL="TU_Org.aspx"
                    Height="400px" Width="600px">
                </Kevin:DialogWindow>
            </td>
        </tr>
        <tr>
            <td>
                <Kevin:Grid ID="grid1" runat="server" GridCssClass="Grid" ServicePath="~/Services/BLLService.asmx"
                    QueryMethod="GetOrgInfoList" AutoGetData="true" QueryControlID="btnQuery" PagerPlace="Both"
                    PageSize="15">
                    <Parameters>
                        <Kevin:QueryParameter ControlID="txtOrgID" DataPropertyName="OrgID" />
                        <Kevin:QueryParameter ControlID="txtOrgFullName" DataPropertyName="OrgFullName" />
                        <Kevin:QueryParameter ControlID="txtOrgShortName" DataPropertyName="OrgShortName" />
                        <Kevin:QueryParameter ControlID="txtOrgDesc" DataPropertyName="OrgDesc" />
                        <Kevin:QueryParameter ControlID="txtOrgParent" DataPropertyName="OrgParent" />
                    </Parameters>
                    <DataFields>
                    <Kevin:PopUpField FieldName="ID" ItemText="编辑" DialogTitle ="组织机构" NavigateURLString="TU_Org.aspx?KeyID={0}"
                            FormatFields="ID" DialogWidth="600" DialogHeight="400" />
                        <Kevin:DataBoundField FieldName="OrgID" HeaderText="组织结构编号" />
                        <Kevin:DataBoundField FieldName="OrgFullName" HeaderText="组织机构名称" />
                        <Kevin:DataBoundField FieldName="OrgShortName" HeaderText="OrgShortName" />
                        <Kevin:DataBoundField FieldName="OrgDesc" HeaderText="描述" />
                        <Kevin:DataBoundField FieldName="OrgParent" HeaderText="父机构编号" />
                    </DataFields>
                </Kevin:Grid>
            </td>
        </tr>
    </table>
</asp:Content>
